<template>
  <div class="index">
    <div class="waifu">

      <!-- 提示框 -->
      <div class="waifu-tips"></div>

      <!-- 看板娘画布 -->
      <canvas id="live2d" class="live2d" />

      <!-- 工具栏 -->
      <div class="waifu-tool">
        <p class="fui-home">
          <i class="el-icon-s-home" />
        </p>
        <p class="fui-chat">
          <i class="el-icon-upload" />
        </p>
        <p class="fui-eye">
          <i class="el-icon-share" />
        </p>
        <p class="fui-user">
          <i class="el-icon-warning" />
        </p>
        <p class="fui-photo">
          <i class="el-icon-camera-solid" />
        </p>
        <p class="fui-info-circle">
          <i class="el-icon-s-comment" />
        </p>
        <p class="fui-cross">
          <i class="el-icon-error" />
        </p>
      </div>

    </div>
  </div>
</template>

<script setup>
/* import '@/assets/live2d/waifu-tips'
import '@/assets/live2d/live2d'
import '@/assets/live2d/waifu.css'
import { initModel } from '@/assets/live2d/waifu-tips'
import tips from "@/assets/live2d/waifu-tips.json" */
import { onMounted } from 'vue'
onMounted(() => {
 /*  live2d_settings['modelId'] = 5;                  // 默认模型 ID
  live2d_settings['modelTexturesId'] = 1;   */        // 默认材质 ID
  /* 在 initModel 前添加 */
  /* initModel(tips) */
})
</script>

<style  scoped>
.waifu-tool p i {
  cursor: pointer;
}
</style>
